home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Include / GuiTab.au3 < prev    next >
Encoding:
Text File  |  2007-09-08  |  19.2 KB  |  410 lines

  1. #include-once
  2. #include <TabConstants.au3>
  3. #include <Misc.au3>
  4. ; ------------------------------------------------------------------------------
  5. ;
  6. ; AutoIt Version: 3.2.3++
  7. ; Language:       English
  8. ; Description:    Functions that assist with the Tab Control.
  9. ;
  10. ; ------------------------------------------------------------------------------
  11.  
  12. ; function list
  13. ;===============================================================================
  14. ; _GUICtrlTabDeleteAllItems
  15. ; _GUICtrlTabDeleteItem
  16. ; _GUICtrlTabDeselectAll
  17. ; _GUICtrlTabGetCurFocus
  18. ; _GUICtrlTabGetCurSel
  19. ; _GUICtrlTabGetExtendedStyle
  20. ; _GUICtrlTabGetItemCount
  21. ; _GUICtrlTabGetItemRECT
  22. ; _GUICtrlTabGetRowCount
  23. ; _GUICtrlTabGetUnicodeFormat
  24. ; _GUICtrlTabHighlightItem
  25. ; _GUICtrlTabSetCurFocus
  26. ; _GUICtrlTabSetCurSel
  27. ; _GUICtrlTabSetMinTabWidth
  28. ; _GUICtrlTabSetUnicodeFormat
  29. ;
  30. ; ************** TODO ******************
  31. ; _GUICtrlTabAdjustRECT ?
  32. ; _GUICtrlTabGetImageList
  33. ; _GUICtrlTabGetItem
  34. ; _GUICtrlTabInsertItem
  35. ; _GUICtrlTabRemoveImage
  36. ; _GUICtrlTabSetExtendedStyle
  37. ; _GUICtrlTabSetImageList
  38. ; _GUICtrlTabSetItem
  39. ; _GUICtrlTabSetItemExtra
  40. ; _GUICtrlTabSetItemSize
  41. ; _GUICtrlTabSetPadding ?
  42. ;===============================================================================
  43.  
  44. ;===============================================================================
  45. ;
  46. ; Description:            _GUICtrlTabDeleteAllItems
  47. ; Parameter(s):        $h_tabcontrol - controlID
  48. ; Requirement:            None
  49. ; Return Value(s):    Returns TRUE if successful, or FALSE otherwise.
  50. ; User CallTip:        _GUICtrlTabDeleteAllItems($h_tabcontrol) Removes all items from a tab control. (required: <GuiTab.au3>)
  51. ; Author(s):            Gary Frost (custompcs at charter dot net)
  52. ; Note(s):                This does not delete the controls on the tabitems
  53. ;
  54. ;===============================================================================
  55. Func _GUICtrlTabDeleteAllItems($h_tabcontrol)
  56.     If Not _IsClassName ($h_tabcontrol, "SysTabControl32") Then Return SetError($TC_ERR, $TC_ERR, False)
  57.     If IsHWnd($h_tabcontrol) Then
  58.         Return _SendMessage($h_tabcontrol, $TCM_DELETEALLITEMS)
  59.     Else
  60.         Return GUICtrlSendMsg($h_tabcontrol, $TCM_DELETEALLITEMS, 0, 0)
  61.     EndIf
  62. EndFunc   ;==>_GUICtrlTabDeleteAllItems
  63.  
  64. ;===============================================================================
  65. ;
  66. ; Description:            _GUICtrlTabDeleteItem
  67. ; Parameter(s):        $h_tabcontrol - controlID
  68. ;                            $i_item - Index of the item to delete.
  69. ; Requirement:            None
  70. ; Return Value(s):    Returns TRUE if successful, or FALSE otherwise.
  71. ; User CallTip:        _GUICtrlTabDeleteItem($h_tabcontrol, $i_item) Removes an item from a tab control. (required: <GuiTab.au3>)
  72. ; Author(s):            Gary Frost (custompcs at charter dot net)
  73. ; Note(s):                This does not delete the controls on the tabitem
  74. ;
  75. ;===============================================================================
  76. Func _GUICtrlTabDeleteItem($h_tabcontrol, $i_item)
  77.     If Not _IsClassName ($h_tabcontrol, "SysTabControl32") Then Return SetError($TC_ERR, $TC_ERR, False)
  78.     If IsHWnd($h_tabcontrol) Then
  79.         Return _SendMessage($h_tabcontrol, $TCM_DELETEITEM, $i_item)
  80.     Else
  81.         Return GUICtrlSendMsg($h_tabcontrol, $TCM_DELETEITEM, $i_item, 0)
  82.     EndIf
  83. EndFunc   ;==>_GUICtrlTabDeleteItem
  84.  
  85. ;===============================================================================
  86. ;
  87. ; Description:            _GUICtrlTabDeselectAll
  88. ; Parameter(s):        $h_tabcontrol - controlID
  89. ;                            $i_bool - Flag that specifies the scope of the item deselection.
  90. ;                                        If this parameter is set to FALSE, all tab items will be reset.
  91. ;                                        If it is set to TRUE, then all tab items except for the one currently selected will be reset.
  92. ; Requirement:            None
  93. ; Return Value(s):    None
  94. ; User CallTip:        _GUICtrlTabDeselectAll($h_tabcontrol, $i_bool) Resets items in a tab control. (required: <GuiTab.au3>)
  95. ; Author(s):            Gary Frost (custompcs at charter dot net)
  96. ; Note(s):                This only works if $TCS_BUTTONS style flag has been set.
  97. ;
  98. ;===============================================================================
  99. Func _GUICtrlTabDeselectAll($h_tabcontrol, $i_bool)
  100.     If Not _IsClassName ($h_tabcontrol, "SysTabControl32") Then Return SetError($TC_ERR, $TC_ERR, 0)
  101.     If IsHWnd($h_tabcontrol) Then
  102.         _SendMessage($h_tabcontrol, $TCM_DESELECTALL, $i_bool)
  103.     Else
  104.         GUICtrlSendMsg($h_tabcontrol, $TCM_DESELECTALL, $i_bool, 0)
  105.     EndIf
  106. EndFunc   ;==>_GUICtrlTabDeselectAll
  107.  
  108. ;===============================================================================
  109. ;
  110. ; Description:            _GUICtrlTabGetCurFocus
  111. ; Parameter(s):        $h_tabcontrol - controlID
  112. ; Requirement:            None
  113. ; Return Value(s):    Returns the index of the tab item that has the focus.
  114. ; User CallTip:        _GUICtrlTabGetCurFocus($h_tabcontrol) Returns the index of the item that has the focus in a tab control.  (required: <GuiTab.au3>)
  115. ; Author(s):            Gary Frost (custompcs at charter dot net)
  116. ; Note(s):                The item that has the focus may be different than the selected item.
  117. ;
  118. ;===============================================================================
  119. Func _GUICtrlTabGetCurFocus($h_tabcontrol)
  120.     If Not _IsClassName ($h_tabcontrol, "SysTabControl32") Then Return SetError($TC_ERR, $TC_ERR, $TC_ERR)
  121.     If IsHWnd($h_tabcontrol) Then
  122.         Return _SendMessage($h_tabcontrol, $TCM_GETCURFOCUS)
  123.     Else
  124.         Return GUICtrlSendMsg($h_tabcontrol, $TCM_GETCURFOCUS, 0, 0)
  125.     EndIf
  126. EndFunc   ;==>_GUICtrlTabGetCurFocus
  127.  
  128. ;===============================================================================
  129. ;
  130. ; Description:            _GUICtrlTabGetCurSel
  131. ; Parameter(s):        $h_tabcontrol - controlID
  132. ; Requirement:            None
  133. ; Return Value(s):    Returns the index of the selected tab if successful, or $TC_ERR if no tab is selected.
  134. ; User CallTip:        _GUICtrlTabGetCurSel($h_tabcontrol) Determines the currently selected tab in a tab control.  (required: <GuiTab.au3>)
  135. ; Author(s):            Gary Frost (custompcs at charter dot net)
  136. ; Note(s):
  137. ;
  138. ;===============================================================================
  139. Func _GUICtrlTabGetCurSel($h_tabcontrol)
  140.     If Not _IsClassName ($h_tabcontrol, "SysTabControl32") Then Return SetError($TC_ERR, $TC_ERR, $TC_ERR)
  141.     If IsHWnd($h_tabcontrol) Then
  142.         Return _SendMessage($h_tabcontrol, $TCM_GETCURSEL)
  143.     Else
  144.         Return GUICtrlSendMsg($h_tabcontrol, $TCM_GETCURSEL, 0, 0)
  145.     EndIf
  146. EndFunc   ;==>_GUICtrlTabGetCurSel
  147.  
  148. ;===============================================================================
  149. ;
  150. ; Description:            _GUICtrlTabGetExtendedStyle
  151. ; Parameter(s):        $h_tabcontrol - controlID
  152. ; Requirement:            None
  153. ; Return Value(s):    Returns a DWORD value that represents the extended styles currently
  154. ;                            in use for the tab control.
  155. ;                            This value is a combination of tab control extended styles.
  156. ; User CallTip:        _GUICtrlTabGetExtendedStyle($h_tabcontrol) Retrieves the extended styles that are currently in use for the tab control.  (required: <GuiTab.au3>)
  157. ; Author(s):            Gary Frost (custompcs at charter dot net)
  158. ; Note(s):
  159. ;
  160. ;===============================================================================
  161. Func _GUICtrlTabGetExtendedStyle($h_tabcontrol)
  162.     If Not _IsClassName ($h_tabcontrol, "SysTabControl32") Then Return SetError($TC_ERR, $TC_ERR, $TC_ERR)
  163.     If IsHWnd($h_tabcontrol) Then
  164.         Return _SendMessage($h_tabcontrol, $TCM_GETEXTENDEDSTYLE)
  165.     Else
  166.         Return GUICtrlSendMsg($h_tabcontrol, $TCM_GETEXTENDEDSTYLE, 0, 0)
  167.     EndIf
  168. EndFunc   ;==>_GUICtrlTabGetExtendedStyle
  169. ;===============================================================================
  170. ;
  171. ; Description:            _GUICtrlTabGetItemCount
  172. ; Parameter(s):        $h_tabcontrol - controlID
  173. ; Requirement:            None
  174. ; Return Value(s):    Returns the number of items if successful, or zero otherwise.
  175. ; User CallTip:        _GUICtrlTabGetItemCount($h_tabcontrol) Retrieves the number of tabs in the tab control.  (required: <GuiTab.au3>)
  176. ; Author(s):            Gary Frost (custompcs at charter dot net)
  177. ; Note(s):
  178. ;
  179. ;===============================================================================
  180. Func _GUICtrlTabGetItemCount($h_tabcontrol)
  181.     If Not _IsClassName ($h_tabcontrol, "SysTabControl32") Then Return SetError($TC_ERR, $TC_ERR, 0)
  182.     If IsHWnd($h_tabcontrol) Then
  183.         Return _SendMessage($h_tabcontrol, $TCM_GETITEMCOUNT)
  184.     Else
  185.         Return GUICtrlSendMsg($h_tabcontrol, $TCM_GETITEMCOUNT, 0, 0)
  186.     EndIf
  187. EndFunc   ;==>_GUICtrlTabGetItemCount
  188.  
  189. ;===============================================================================
  190. ;
  191. ; Description:            _GUICtrlTabGetItemRECT
  192. ; Parameter(s):        $h_tabcontrol - controlID
  193. ;                            $i_item - Zero-based index of a tab control item.
  194. ; Requirement:            None
  195. ; Return Value(s):    Array containing the RECT, first element ($array[0]) contains the number of elements
  196. ;                            If an error occurs, the return value is $TC_ERR.
  197. ; User CallTip:        _GUICtrlTabGetItemRECT($h_tabcontrol, $i_item) Retrieves the bounding rectangle for a tab in a tab control.  (required: <GuiTab.au3>)
  198. ; Author(s):            Gary Frost (custompcs at charter dot net)
  199. ; Note(s):
  200. ;
  201. ;===============================================================================
  202. Func _GUICtrlTabGetItemRECT($h_tabcontrol, $i_item)
  203.     If Not _IsClassName ($h_tabcontrol, "SysTabControl32") Then Return SetError($TC_ERR, $TC_ERR, $TC_ERR)
  204. ;~     typedef struct _RECT {
  205. ;~       LONG left;
  206. ;~       LONG top;
  207. ;~       LONG right;
  208. ;~       LONG bottom;
  209. ;~     } RECT, *PRECT;
  210.     Local $RECT = "int;int;int;int"
  211.     Local $left = 1
  212.     Local $top = 2
  213.     Local $right = 3
  214.     Local $bottom = 4
  215.     Local $struct_RECT, $v_ret
  216.     $struct_RECT = DllStructCreate($RECT)
  217.     If @error Then Return SetError($TC_ERR, $TC_ERR, $TC_ERR)
  218.     If IsHWnd($h_tabcontrol) Then
  219.         $v_ret = _SendMessage($h_tabcontrol, $TCM_GETITEMRECT, $i_item, DllStructGetPtr($struct_RECT), 0, "int", "ptr")
  220.     Else
  221.         $v_ret = GUICtrlSendMsg($h_tabcontrol, $TCM_GETITEMRECT, $i_item, DllStructGetPtr($struct_RECT))
  222.     EndIf
  223.     If (Not $v_ret) Then Return SetError($TC_ERR, $TC_ERR, $TC_ERR)
  224.     Local $array = StringSplit(DllStructGetData($struct_RECT, $left) & "," & DllStructGetData($struct_RECT, $top) & "," & DllStructGetData($struct_RECT, $right) & "," & DllStructGetData($struct_RECT, $bottom), ",")
  225.     Return $array
  226. EndFunc   ;==>_GUICtrlTabGetItemRECT
  227.  
  228. ;===============================================================================
  229. ;
  230. ; Description:            _GUICtrlTabGetRowCount
  231. ; Parameter(s):        $h_tabcontrol - controlID
  232. ; Requirement:            None
  233. ; Return Value(s):    Returns the number of rows of tabs.
  234. ; User CallTip:        _GUICtrlTabGetRowCount($h_tabcontrol) Retrieves the current number of rows of tabs in a tab control.  (required: <GuiTab.au3>)
  235. ; Author(s):            Gary Frost (custompcs at charter dot net)
  236. ; Note(s):                Only tab controls that have the $TCS_MULTILINE style can have multiple rows of tabs.
  237. ;
  238. ;===============================================================================
  239. Func _GUICtrlTabGetRowCount($h_tabcontrol)
  240.     If Not _IsClassName ($h_tabcontrol, "SysTabControl32") Then Return SetError($TC_ERR, $TC_ERR, $TC_ERR)
  241.     If IsHWnd($h_tabcontrol) Then
  242.         Return _SendMessage($h_tabcontrol, $TCM_GETROWCOUNT)
  243.     Else
  244.         Return GUICtrlSendMsg($h_tabcontrol, $TCM_GETROWCOUNT, 0, 0)
  245.     EndIf
  246. EndFunc   ;==>_GUICtrlTabGetRowCount
  247.  
  248. ;===============================================================================
  249. ;
  250. ; Description:            _GUICtrlTabGetUnicodeFormat
  251. ; Parameter(s):        $h_tabcontrol - controlID
  252. ; Requirement:            None
  253. ; Return Value(s):    Returns the Unicode format flag for the control.
  254. ;                            If this value is nonzero, the control is using Unicode characters.
  255. ;                            If this value is zero, the control is using ANSI characters.
  256. ; User CallTip:        _GUICtrlTabGetUnicodeFormat($h_tabcontrol) Retrieves the Unicode character format flag for the control.  (required: <GuiTab.au3>)
  257. ; Author(s):            Gary Frost (custompcs at charter dot net)
  258. ; Note(s):
  259. ;
  260. ;===============================================================================
  261. Func _GUICtrlTabGetUnicodeFormat($h_tabcontrol)
  262.     If Not _IsClassName ($h_tabcontrol, "SysTabControl32") Then Return SetError($TC_ERR, $TC_ERR, 0)
  263.     If IsHWnd($h_tabcontrol) Then
  264.         Return _SendMessage($h_tabcontrol, $TCM_GETUNICODEFORMAT)
  265.     Else
  266.         Return GUICtrlSendMsg($h_tabcontrol, $TCM_GETUNICODEFORMAT, 0, 0)
  267.     EndIf
  268. EndFunc   ;==>_GUICtrlTabGetUnicodeFormat
  269. ;===============================================================================
  270. ;
  271. ; Description:            _GUICtrlTabHighlightItem
  272. ; Parameter(s):        $h_tabcontrol - controlID
  273. ;                            $i_item - Zero-based index of a tab control item.
  274. ;                            $i_bool - Value specifying the highlight state to be set.
  275. ;                                        If this value is TRUE, the tab is highlighted
  276. ;                                        If FALSE, the tab is set to its default state.
  277. ; Requirement:            None
  278. ; Return Value(s):    Returns nonzero if successful, or zero otherwise.
  279. ; User CallTip:        _GUICtrlTabHighlightItem($h_tabcontrol, $i_item, $i_bool) Sets the highlight state of a tab item.  (required: <GuiTab.au3>)
  280. ; Author(s):            Gary Frost (custompcs at charter dot net)
  281. ; Note(s):
  282. ;
  283. ;===============================================================================
  284. Func _GUICtrlTabHighlightItem($h_tabcontrol, $i_item, $i_bool)
  285.     If Not _IsClassName ($h_tabcontrol, "SysTabControl32") Then Return SetError($TC_ERR, $TC_ERR, 0)
  286.     If IsHWnd($h_tabcontrol) Then
  287.         Return _SendMessage($h_tabcontrol, $TCM_HIGHLIGHTITEM, $i_item, $i_bool)
  288.     Else
  289.         Return GUICtrlSendMsg($h_tabcontrol, $TCM_HIGHLIGHTITEM, $i_item, $i_bool)
  290.     EndIf
  291. EndFunc   ;==>_GUICtrlTabHighlightItem
  292.  
  293. ;===============================================================================
  294. ;
  295. ; Description:            _GUICtrlTabSetCurFocus
  296. ; Parameter(s):        $h_tabcontrol - controlID
  297. ;                            $i_item - Zero-based index of a tab control item.
  298. ; Requirement:            None
  299. ; Return Value(s):    None
  300. ; User CallTip:        _GUICtrlTabSetCurFocus($h_tabcontrol, $i_item) Sets the focus to a specified tab in a tab control.  (required: <GuiTab.au3>)
  301. ; Author(s):            Gary Frost (custompcs at charter dot net)
  302. ; Note(s):                If the tab control has the $TCS_BUTTONS style (button mode),
  303. ;                            the tab with the focus may be different from the selected tab.
  304. ;                            For example, when a tab is selected, the user can press the arrow
  305. ;                            keys to set the focus to a different tab without changing the selected tab.
  306. ;                            In button mode, $TCM_SETCURFOCUS sets the input focus to the button associated
  307. ;                            with the specified tab, but it does not change the selected tab.
  308. ;
  309. ;                            If the tab control does not have the $TCS_BUTTONS style, changing the focus
  310. ;                            also changes the selected tab.
  311. ;
  312. ;===============================================================================
  313. Func _GUICtrlTabSetCurFocus($h_tabcontrol, $i_item)
  314.     If Not _IsClassName ($h_tabcontrol, "SysTabControl32") Then Return SetError($TC_ERR, $TC_ERR, 0)
  315.     If IsHWnd($h_tabcontrol) Then
  316.         _SendMessage($h_tabcontrol, $TCM_SETCURFOCUS, $i_item)
  317.     Else
  318.         GUICtrlSendMsg($h_tabcontrol, $TCM_SETCURFOCUS, $i_item, 0)
  319.     EndIf
  320. EndFunc   ;==>_GUICtrlTabSetCurFocus
  321.  
  322. ;===============================================================================
  323. ;
  324. ; Description:            _GUICtrlTabSetCurSel
  325. ; Parameter(s):        $h_tabcontrol - controlID
  326. ;                            $i_item - Zero-based index of a tab control item.
  327. ; Requirement:            None
  328. ; Return Value(s):    Returns the index of the previously selected tab if successful, or $TC_ERR otherwise.
  329. ; User CallTip:        _GUICtrlTabSetCurSel($h_tabcontrol, $i_item) Selects a tab in a tab control.  (required: <GuiTab.au3>)
  330. ; Author(s):            Gary Frost (custompcs at charter dot net)
  331. ; Note(s):                A tab control does not send a $TCN_SELCHANGING or $TCN_SELCHANGE
  332. ;                            notification message when a tab is selected using this message.
  333. ;
  334. ;===============================================================================
  335. Func _GUICtrlTabSetCurSel($h_tabcontrol, $i_item)
  336.     If Not _IsClassName ($h_tabcontrol, "SysTabControl32") Then Return SetError($TC_ERR, $TC_ERR, $TC_ERR)
  337.     If IsHWnd($h_tabcontrol) Then
  338.         Return _SendMessage($h_tabcontrol, $TCM_SETCURSEL, $i_item)
  339.     Else
  340.         Return GUICtrlSendMsg($h_tabcontrol, $TCM_SETCURSEL, $i_item, 0)
  341.     EndIf
  342. EndFunc   ;==>_GUICtrlTabSetCurSel
  343.  
  344. ;===============================================================================
  345. ;
  346. ; Description:            _GUICtrlTabSetMinTabWidth
  347. ; Parameter(s):        $h_tabcontrol - controlID
  348. ;                            $i_width - Minimum width to be set for a tab control item.
  349. ;                                        If this parameter is set to -1, the control will use the default tab width.
  350. ; Requirement:            None
  351. ; Return Value(s):    Returns an INT value that represents the previous minimum tab width.
  352. ; User CallTip:        _GUICtrlTabSetMinTabWidth($h_tabcontrol, $i_width) Sets the minimum width of items in a tab control.  (required: <GuiTab.au3>)
  353. ; Author(s):            Gary Frost (custompcs at charter dot net)
  354. ; Note(s):
  355. ;
  356. ;===============================================================================
  357. Func _GUICtrlTabSetMinTabWidth($h_tabcontrol, $i_width)
  358.     If Not _IsClassName ($h_tabcontrol, "SysTabControl32") Then Return SetError($TC_ERR, $TC_ERR, $TC_ERR)
  359.     If IsHWnd($h_tabcontrol) Then
  360.         Return _SendMessage($h_tabcontrol, $TCM_SETMINTABWIDTH, 0, $i_width)
  361.     Else
  362.         Return GUICtrlSendMsg($h_tabcontrol, $TCM_SETMINTABWIDTH, 0, $i_width)
  363.     EndIf
  364. EndFunc   ;==>_GUICtrlTabSetMinTabWidth
  365.  
  366. ;===============================================================================
  367. ;
  368. ; Description:            _GUICtrlTabSetPadding
  369. ; Parameter(s):        $h_tabcontrol - controlID
  370. ;                            $i_cx
  371. ;                            $i_cy
  372. ; Requirement:            None
  373. ; Return Value(s):    None
  374. ; User CallTip:        _GUICtrlTabSetPadding($h_tabcontrol, $i_cx, $i_cy) Sets the amount of space (padding) around each tab's icon and label in a tab control.  (required: <GuiTab.au3>)
  375. ; Author(s):            Gary Frost (custompcs at charter dot net)
  376. ; Note(s):
  377. ; not sure if this ones working
  378. ;===============================================================================
  379. ;~ Func _GUICtrlTabSetPadding($h_tabcontrol, $i_cx, $i_cy)
  380. ;~    If IsHWnd($h_tabcontrol) Then
  381. ;~       DllCall("user32.dll", "none", "SendMessage", "hwnd", $h_tabcontrol, "int", $TCM_SETPADDING, "int", 0, "int", $i_cy * 65535 + $i_cx)
  382. ;~    Else
  383. ;~         GUICtrlSendMsg($h_tabcontrol, $TCM_SETPADDING, 0, $i_cy * 65535 + $i_cx)
  384. ;~     EndIf
  385. ;~ EndFunc   ;==>_GUICtrlTabSetPadding
  386.  
  387. ;===============================================================================
  388. ;
  389. ; Description:            _GUICtrlTabSetUnicodeFormat
  390. ; Parameter(s):        $h_tabcontrol - controlID
  391. ;                            $i_bool - Determines the character set that is used by the control.
  392. ;                                        If this value is nonzero, the control will use Unicode characters.
  393. ;                                        If this value is zero, the control will use ANSI characters.
  394. ; Requirement:            None
  395. ; Return Value(s):    Returns the previous Unicode format flag for the control.
  396. ;                            If this value is nonzero, the control is using Unicode characters.
  397. ;                            If this value is zero, the control is using ANSI characters.
  398. ; User CallTip:        _GUICtrlTabSetUnicodeFormat($h_tabcontrol, $i_bool) Sets the Unicode character format flag for the control.  (required: <GuiTab.au3>)
  399. ; Author(s):            Gary Frost (custompcs at charter dot net)
  400. ; Note(s):
  401. ;
  402. ;===============================================================================
  403. Func _GUICtrlTabSetUnicodeFormat($h_tabcontrol, $i_bool)
  404.     If Not _IsClassName ($h_tabcontrol, "SysTabControl32") Then Return SetError($TC_ERR, $TC_ERR, 0)
  405.     If IsHWnd($h_tabcontrol) Then
  406.         Return _SendMessage($h_tabcontrol, $TCM_SETUNICODEFORMAT, $i_bool)
  407.     Else
  408.         Return GUICtrlSendMsg($h_tabcontrol, $TCM_SETUNICODEFORMAT, $i_bool, 0)
  409.     EndIf
  410. EndFunc   ;==>_GUICtrlTabSetUnicodeFormat